<template>
  <el-config-provider :locale="locale">
    <router-view></router-view>
  </el-config-provider>
</template>

<script setup lang="ts">
  import { ElConfigProvider } from 'element-plus'
  // 动态导入方式
  import('element-plus/es/locale/lang/zh-cn').then(module => {
    locale.value = module.default
  })

  import { ref } from 'vue'
  const locale = ref()
</script>

<style scoped></style>
